#!/bin/bash

## Publish tournament PNG file on javanile.org

DATA=""
for FILE in ./tournament/*.pgn; do
	DATA="$DATA [pgn]" 
	DATA="$DATA `cat $FILE`"
	DATA="$DATA [/pgn] "
done

curl -d do="publishgame" -d key="torneo" -d user="motorino" -d data="$DATA" http://javanile.org/services/

